module.exports.getPageParams = (params) => {
  let limit = ~~(params?.pageSize || 10);
  let offset = params?.pageIndex || 1;
  offset = (offset - 1) * limit;
  return {
    limit,
    offset,
  };
};
